import type { MenuList } from '~/types/menu'
import { BellFilled, DataBoard, Goods, Location, OfficeBuilding, Operation, Picture, ShoppingCartFull, User, UserFilled } from '@element-plus/icons-vue'

export const sideMenuList: MenuList = [
  {
    path: '/manage',
    title: '控制台',
    icon: DataBoard,
    meta: { cache: true },
  },
  {
    path: '/manage/address',
    title: '地址列表',
    icon: Location,
    meta: { affix: true },
  },
  {
    title: '成员管理',
    icon: UserFilled,
    children: [
      {
        path: '/manage/admin',
        title: '管理员管理',
      },
      {
        path: '/manage/user',
        title: '用户管理',
      },
    ],
    meta: {
      adminOnly: true,
    },
  },
  {
    path: '/manage/banner',
    title: '轮播图管理',
    icon: Picture,
    meta: { cache: true },
  },
  {
    path: '/manage/menu',
    title: '菜单管理',
    icon: Operation,
    meta: { cache: true },
  },
  {
    title: '通知管理',
    icon: BellFilled,
    meta: { cache: true },
    children: [
      {
        path: '/manage/notice',
        title: '通知管理',
      },
      {
        path: '/manage/notice/category',
        title: '通知分类管理',
      },
    ],
  },
  {
    path: '/manage/order',
    title: '订单管理',
    icon: ShoppingCartFull,
    meta: { cache: true },
  },
  {
    path: '/manage/pro',
    title: '商品管理',
    icon: Goods,
    meta: { cache: true },
  },
  {
    path: '/manage/role',
    title: '角色管理',
    icon: User,
    meta: { cache: true },
  },
  {
    path: '/manage/department',
    title: '部门管理',
    icon: OfficeBuilding,
    meta: { cache: true },
  },
]
